<?php echo $this->element('menu'); ?>
<div class="codexecs form">
<?php echo $this->Form->create('Codexec');?>
	<fieldset>
		<legend><?php __('Admin Edit Codexec'); ?></legend>
	<?php
	
		echo $this->Form->input('id');
		echo $this->Form->input('ComID', array('label'=>'Com Name','options'=>$codetails));
		echo $this->Form->input('director_id', array('label'=>'Director Name',"selected"=>$this->data['Codexec']['director_id'],'options'=>$directors,"empty"=>"Choose one"));
		echo $this->Form->input('Name',array("type"=>"hidden"));
	//	echo $this->Form->input('DIRref');
		echo $this->Form->input('dir_title_id',array('options'=>$titles,'selected'=>$this->data['Codexec']['dir_title_id'],'empty'=>'ADD please'));
		echo $this->Form->input('dir_title_id2',array('options'=>$titles,'selected'=>$this->data['Codexec']['dir_title_id2'],'empty'=>'ADD please'));
		echo $this->Form->input('App',array('minYear' => '1950','maxYear' => date("Y"),'dateFormat' => 'DMY','empty'=>'Choose one'));
		echo $this->Form->input('Resig',array('minYear' => '1950','maxYear' => date("Y"),'dateFormat' => 'DMY','empty'=>'Choose one'));
	?>
	</fieldset>
<?php echo $this->Form->end(__('Submit', true));?>
</div>